package icu.qx.wm.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 库存信息对象 wm_storage_info
 *
 * @author alize
 * &#064;date  2024-06-25
 */
@Setter
@Getter
public class WmStorageInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String stPdCode;

    /** 批次号 */
    @Excel(name = "批次号")
    private String storageInfoBatch;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String stSlCode;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private BigDecimal storageInfoNum;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date siProductionDate;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date siExpirationDate;

    @Override
    public String toString() {
        return "WmStorageInfo{" +
                ", stSlCode='" + stSlCode + '\'' +
                ", stPdCode='" + stPdCode + '\'' +
                ", storageInfoNum=" + storageInfoNum +
                ", storageInfoBatch='" + storageInfoBatch + '\'' +
                ", siProductionDate=" + siProductionDate +
                ", siExpirationDate=" + siExpirationDate +
                '}';
    }
}
